package com.bdqn.component;

/**
 * 返回的状态类型
 * @author jinge
 */
public enum StatusType {

	SUCCESS(0,"success"), //成功
	EXCEPTION(2,"exception"),//异常
	INFO(3,"info"),
	ERROR(1,"error"), //错误
	EXIST(4,"exist"), //存在
	NOTEXIST(5,"notExist"); //不存在
	
	private  int  code;
	private  String value; 
	private StatusType(int code,String value) {
		this.value = value;
		this.code=code;
	}
	public int getCode() {
		return code;
	}
	public String getValue() {
		return value;
	}
	
	@Override
	public String toString() {
		return getValue();
	}
	
	
}
